<?php
require_once("../init.php");
$sql="SELECT aid,img_pmy FROM `xz_article` where seq_recomm=3";
$result=mysqli_query($conn,$sql);
$r1=mysqli_fetch_assoc($result);

$sql="SELECT aid,img_pmy FROM `xz_article` where seq_recomm=2 limit 4";
$result=mysqli_query($conn,$sql);
$r2=mysqli_fetch_all($result,1);

$output=[
  'data1'=>$r1,
  'data2'=>$r2
];

echo json_encode($output); 
